﻿@using EditorialProyectos.Website.Infrastructure

@model EditorialProyectos.Website.Models.HomeViewModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "Home - Editorial Proyectos!";
}

@section Scripts{
    @Content.ViewModel("HomeViewModel.js", Url)
    
    <script>
        var modelData = '@Html.Raw(Model.ToJson())';
        var modelJSON = JSON.parse(modelData);

        var viewModel = new HomeViewModel(modelJSON);
        ko.applyBindings(viewModel);
    </script>
}

<div class="jumbotron color-white">
    <div class="row" data-bind="visible: Main.State.CurrentPage() == 'Welcome'">
        <div class="col-md-12">
            <h2>WELCOME @User.Identity.Name !!</h2>
        </div>
    </div>
</div>
